from point import Point

import pygame
from pygame.locals import *


class Asteroid:
    image = None
    point = None
    
    def __init__(self, point = Point() ):
        self.image = pygame.image.load('big_asteroid.png').convert()
        self.image.set_colorkey(self.image.get_at((0,0)))
        self.point = point
        
    def paint(self,screen):
        image_to_paint = pygame.transform.rotate(self.image,self.point.angle)
        screen.blit( image_to_paint, (self.point.x, self.point.y))
        
    def move(self):
        self.point.move()
        
    def get_rect(self):
        return pygame.Rect(self.point.x, self.point.y, self.image.get_rect().width, self.image.get_rect().height)